JS objects: Why can you change a property by setting variable equal to object but not by setting it

welcome to shbcf.ru